package main

import "fmt"

func main() {
	a := [...]int{6, 8, 7, 5, 4, 1, 3}
	fmt.Println(a)

	lens := len(a)
	for i := 0; i < lens; i++ {
		for j := i + 1; j < lens; j++ {
			if a[i] > a[j] {
				a[i], a[j] = a[j], a[i]
			}
		}
	}
	fmt.Println(a)
}
